local locks = require "resty.lock"
local cjson = require "cjson"

--ngx.log(ngx.ERR,":ngx.var.requestBody======================",ngx.var.requestBody )

ngx.var.resp_body = ngx.arg[1]
ngx.ctx.buffered = (ngx.ctx.buffered or "") .. ngx.var.resp_body
if ngx.arg[2] then
      ngx.var.resp_body  = ngx.ctx.buffered
end
  -- toolslua.addJsToHtml()

 if not ngx.arg[2] then
     return
 end      

local sentinel= require("lib.pluging.sentinel")

sentinel.timeRiskControl(ngx.var.body_bytes_sent,ngx.var.upstream_response_time) 


  


